package com.lyl.example.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 97134
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    //成功
    OK(200, "ok"),
    FAILED(999, "failed"),
    SYSTEM_ERROR(500, "系统异常"),
    METHOD_NOT_SUPPORT(405, "请求方式不支持"),

    //系统异常
    ILLEGAL_PARAM(1001, "传入参数不合法"),

    //业务异常 2000开头 （msg直出）
    BUSINESS_ERROR(2001, "业务异常");

    private final int code;

    private final String msg;
}
